﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="main.aspx.cs" Inherits="WebApplication.main" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    Product Price:<asp:TextBox ID="txtProductPrice" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="txtProductPrice" Display="Dynamic" 
            ErrorMessage="RequiredFieldValidator" EnableClientScript="False">(Require)</asp:RequiredFieldValidator>

        <asp:CompareValidator ID="CompareValidator1" runat="server" 
            ControlToValidate="txtProductPrice" ErrorMessage="CompareValidator" 
            Operator="DataTypeCheck" Type="Currency">Invalid Price</asp:CompareValidator>


    </div>
    </form>
</body>
</html>
